<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>选择核算项目</title>
		<%@ include file="/WEB-INF/jsp/include.jsp"%>
		<script type="text/javascript">
		var km_id = "${param.km_id}";
		
		$(function(){
			setAjaxLoading();
			
		});
		
		function btnOk() {
			var hsxm_id = $("#sel_hsxm").combobox("getValue");
			if (hsxm_id == null || hsxm_id == "" || hsxm_id == "null" || hsxm_id == "-1") {
				//$.messager.alert('提示', '核算项目不能为空，请选择核算项目。', 'info',function(){});
				$.alert("default", "info", "核算项目不能为空，请选择核算项目！");
				return false;
			}
			
			var hsxm_mc = $("#sel_hsxm").combobox("getText");
			
			var returnValue = new Object();
			returnValue.km_id = km_id;
			returnValue.hsxm_id = hsxm_id;
			returnValue.hsxm_mc = hsxm_mc;
			
			parent.window.callback_selectZzsHsxm(returnValue);
			setTimeout("closeLayer()",100);
		}
		</script>
	</head>
  <body  style="margin:0px; padding:0px;" >
  <%@ include file="/WEB-INF/jsp/loading.jsp" %>
	<div id="div_container" class="easyui-layout" fit="true" border="false">	
		<div data-options="region:'center',title:'',split:false,border:true">
			<div align="center" style="padding-top: 10px; padding-bottom: 10px;">
					<form id="sbcsForm" method="post" >
						<table class="f_table" cellspacing="1">
							<colgroup> 
								<col style="width:155;"></col>
								<col style="width:215;"></col>
							</colgroup>					
							<tr>
								<td align="right" class="s_bg">
									核算项目：
								</td>
								<td align="left">
									<select id="sel_hsxm" class="easyui-combobox" style="width:214px;" data-options="editable:false,height:35,panelHeight:150">
										<option value="-1">请选择</option>
										<c:forEach var="item"  items="${list}">
											<option value="${item.id}">${item.name}</option>
										</c:forEach>										
									</select>
								</td>
							</tr>
					</table>
				</form>  
			</div>			
		</div>
		<div data-options="region:'south',title:'',split:false,border: false" style="height:55px;">
			<div align="center" style="margin-top: 15px;">
	        	<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="btnOk()">确定</a>
	        	<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="closeLayer();">取消</a>
       		</div>
		</div>
	</div>	
</body>
</html>
